
cc.Class({
    extends: cc.Component,

    properties: {
    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        this._onTouchCallback = null;
    },

    start () {
        this.node.on(cc.Node.EventType.TOUCH_START,event => {
            if(this._onTouchCallback != null){
                this._onTouchCallback();
            }
        });
    },

    // update (dt) {},

    touchCallback(callback){
        this._onTouchCallback = callback;
    },
});
